﻿using System;

namespace SharpOSCAR.Base
{
    /// <summary>
    /// Defines the contract for all OSCAR string types
    /// </summary>
    public interface IString
    {
        /// <summary>
        /// Returns a byte array representing the string
        /// </summary>
        /// <returns>Returns a byte array representing the string</returns>>
        byte[] ToByteArray();

        /// <summary>
        /// Returns a byte array representing the string in "compressed" format
        /// </summary>
        /// <returns>Returns a byte array representing the string in "compressed" format</returns>
        byte[] ToByteArrayCompressed();
    }
}
